package com.sz.mes.entity;

import java.util.Date;
import java.lang.Double;
import java.math.BigDecimal;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.sz.mes.entity.BaseCustomEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.diboot.core.util.D;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 商品库存盘点修改记录 Entity定义
* @author hem
* @version 1.0
* @date 2023-08-11
* Copyright © szhs
*/
@Getter @Setter @Accessors(chain = true)
@TableName("lattice_goods_inventory")
public class LatticeGoodsInventory extends BaseCustomEntity {
    private static final long serialVersionUID = 5349998158810823887L;

    /**
    * 商品 
    */
    @TableField()
    private Long goodsId;

    /**
    * 货架格子 
    */
    @TableField()
    private Long warehouseLatticeId;

    /**
    * 原库存数量 
    */
    @TableField()
    private Integer oldQuantity;

    /**
    * 真实数量 
    */
    @TableField()
    private Integer trueQuantity;

    /**
    * 创建人 
    */
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    /**
    * 更新人 
    */
    @TableField(fill = FieldFill.UPDATE)
    private Long updateBy;

    /**
    * 更新时间 
    */
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;


} 
